home *** CD-ROM | disk | FTP | other *** search
- Path: erich.triumf.ca!bennett
- From: bennett@erich.triumf.ca (P.Bennett)
- Newsgroups: comp.lang.c
- Subject: Re: Passing to C prog from Dos Prompt
- Date: 16 Apr 1996 15:23 PST
- Organization: TRIUMF: Tri-University Meson Facility
- Distribution: world
- Message-ID: <16APR199615234305@erich.triumf.ca>
- References: <4l0qei$gj9@soap.news.pipex.net>
- NNTP-Posting-Host: erich.triumf.ca
- News-Software: VAX/VMS VNEWS 1.50
-
- In article <4l0qei$gj9@soap.news.pipex.net>, . writes...
- >i apologise if this question has done the rounds before,
- >as I haven't got the time to check all 1500 odd articles.
- >
- >basically, I want to pass some parameters to a program from DOS
- >eg, for the program IDLP :
- >
- >C:\>IDLP /?
- >C:\>IDLP test.dlt
- >
- >This is annoying as i had the routinew for this but seem to have lost
- >it. ARRGH!
-
- int main(int argc, char* argv[])
- {
- /* argc will = 2 */
- /* argv[1] will be "test.dlt" */
- /* argv[0] _may_ be "IDLP" (depends on operating system...) */
-
-
-
-
- Peter Bennett VE7CEI | Vessels shall be deemed to be in sight
- Internet: bennett@triumf.ca | of one another only when one can be
- Packet: ve7cei@ve7kit.#vanc.bc.ca | observed visually from the other
- TRIUMF, Vancouver, B.C., Canada | ColRegs 3(k)
- GPS and NMEA info and programs: ftp://sundae.triumf.ca/pub/peter/index.html
- or: ftp://ftp-i2.informatik.rwth-aachen.de/pub/arnd/GPS/peter/index.html
- or: http:://vancouver-webpages.com/peter/index.html
-
-